-- GENERATED SPELL FOR [Claw] --


function spell0_17827(pUnit, Event) --@Echoing Roar,Self--
pUnit:FullCastSpellOnTarget(31429,pUnit)
pUnit:RegisterEvent('Sorts_17827', 20325, 1)
end

function spell1_17827(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(34971,pUnit)
pUnit:RegisterEvent('Sorts_17827', 20267, 1)
end

function spell2_17827(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(34298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17827', 606, 1)
end

function Sorts_17827(pUnit, Event)
local choix_sorts_17827 = math.random(0, 2)
if choix_sorts_17827 == 0 then
pUnit:RegisterEvent('spell0_17827', 1, 1)
end
if choix_sorts_17827 == 1 then
pUnit:RegisterEvent('spell1_17827', 1, 1)
end
if choix_sorts_17827 == 2 then
pUnit:RegisterEvent('spell2_17827', 1, 1)
end
end

function mob17827_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17827', math.random(1500, 3000), 1)
end

function mob17827_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17827_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17827_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17827, 1, 'mob17827_Action')
RegisterUnitEvent(17827, 2, 'mob17827_Leave')
RegisterUnitEvent(17827, 3, 'mob17827_Kill')
RegisterUnitEvent(17827, 4, 'mob17827_Die')
